// 引入Service和请求头ServiceName
import { Service, ServiceName } from '@/network/http.js'
import store from '@/store/index.js' // 引入store

const api = {
  /**
   * 主列表
   */
  listPages (params) {
    return Service.get(
      `/${ServiceName}/api/external/TYardMeasureController/queryall`,{params}
    )
  },
   /**
   * 根据Id查询卸船检尺
   */
   getShipUnloadingData(id) {
    return Service.get(
      `/${ServiceName}/api/external/TYardMeasureController/querybyid?id=${id}`
    )
  },
   /**
   * 根据Id查询发货检尺
   */
   getDeliverGoodsData(id) {
    return Service.get(
      `/${ServiceName}/api/external/TYardMeasureController/querybyidFahuo?id=${id}`
    )
  },
  /**
   * 查询卸船检尺码单详情
   */
  getCodeListData(params) {
    return Service.get(
      `/${ServiceName}/api/external/TYardMeasureController/queryAllXq`,{params}
    )
  },
  /**
   * 查询发货检尺码单详情
   */
  getCodeListData1(params) {
    return Service.get(
      `/${ServiceName}/api/external/TYardMeasureController/queryAllFhxq`,{params}
    )
  },
}
export default api